package net.awpspace.mobile.management.point;

import javax.microedition.midlet.MIDlet;

import net.awpspace.mobile.form.BaseForm;

import com.sun.lwuit.Button;
import com.sun.lwuit.Command;
import com.sun.lwuit.Container;
import com.sun.lwuit.events.ActionEvent;
import com.sun.lwuit.layouts.BoxLayout;

public class PointManagement extends BaseForm {
	public PointManagement(MIDlet app, BaseForm parent) {
		super(app, parent);
		setTitle("Quản lý điểm");
		Container container = new Container(new BoxLayout(BoxLayout.Y_AXIS));
		Button addPoint = new Button(new Command("Nhập điểm"));
		Button editPoint = new Button(new Command("Xem điểm"));
		Button tbPoint = new Button(new Command("Tính điểm"));
		container.addComponent(addPoint);
		container.addComponent(editPoint);
		container.addComponent(tbPoint);
		this.addComponent(container);
	}
	
	protected void processCommand(ActionEvent e) {
		if(e.getCommand().getCommandName().equals("Nhập điểm")){
			new ThemDiem(app,this).show();
			
			
		}
		if(e.getCommand().getCommandName().equals("Xem điểm")){
			new XemDiem(app, this).show();
			
		}
		if(e.getCommand().getCommandName().equals("Tính điểm")){
			new TinhDiem(app,this).show();
	}  
	}
}
